class Section(val title:Char,val friendList:ArrayList<Person>) {
    fun add(person:Person){
        friendList.add(person)
        friendList.sortWith(person)
    }

    fun delete(name:String){
        for (p in friendList){
            if (p.name == name){
                friendList.remove(p)
                break
            }
        }
    }

    fun show(){
        println(title)
        friendList.forEach {
            println(it)
        }
    }
}